package com.deft.design.abstracts.factory.impl;

import com.deft.design.abstracts.factory.IDatabaseAdapter;
import com.deft.design.abstracts.matter.Oracle;
import lombok.extern.slf4j.Slf4j;

/**
 * @author zdl
 * @description
 * @date 2022-04-18
 **/
@Slf4j
public class OracleDatabaseAdapter implements IDatabaseAdapter {

    Oracle oracle = new Oracle();

    @Override
    public void insert(String str) {
        oracle.insert(str);
    }

    @Override
    public String selectById(Integer id) {
        return oracle.select(id);
    }

    @Override
    public void deleteById(Integer id) {
        oracle.delete(id);
    }

    @Override
    public void updateById(Integer id, String str) {
        oracle.update(id, str);
    }
}
